a__terms(N) → cons(recip(a__sqr(mark(N))), terms(s(N)))
a__sqr(0) → 0
a__sqr(s(X)) → s(a__add(a__sqr(mark(X)), a__dbl(mark(X))))
a__dbl(0) → 0
a__dbl(s(X)) → s(s(a__dbl(mark(X))))
a__add(0, X) → mark(X)
a__add(s(X), Y) → s(a__add(mark(X), mark(Y)))
a__first(0, X) → nil
a__first(s(X), cons(Y, Z)) → cons(mark(Y), first(X, Z))
a__half(0) → 0
a__half(s(0)) → 0
a__half(s(s(X))) → s(a__half(mark(X)))
a__half(dbl(X)) → mark(X)
mark(terms(X)) → a__terms(mark(X))
mark(sqr(X)) → a__sqr(mark(X))
mark(add(X1, X2)) → a__add(mark(X1), mark(X2))
mark(dbl(X)) → a__dbl(mark(X))
mark(first(X1, X2)) → a__first(mark(X1), mark(X2))
mark(half(X)) → a__half(mark(X))
mark(cons(X1, X2)) → cons(mark(X1), X2)
mark(recip(X)) → recip(mark(X))
mark(s(X)) → s(mark(X))
mark(0) → 0
mark(nil) → nil
a__terms(X) → terms(X)
a__sqr(X) → sqr(X)
a__add(X1, X2) → add(X1, X2)
a__dbl(X) → dbl(X)
a__first(X1, X2) → first(X1, X2)
a__half(X) → half(X)
↳ QTRS
↳ DependencyPairsProof
a__terms(N) → cons(recip(a__sqr(mark(N))), terms(s(N)))
a__sqr(0) → 0
a__sqr(s(X)) → s(a__add(a__sqr(mark(X)), a__dbl(mark(X))))
a__dbl(0) → 0
a__dbl(s(X)) → s(s(a__dbl(mark(X))))
a__add(0, X) → mark(X)
a__add(s(X), Y) → s(a__add(mark(X), mark(Y)))
a__first(0, X) → nil
a__first(s(X), cons(Y, Z)) → cons(mark(Y), first(X, Z))
a__half(0) → 0
a__half(s(0)) → 0
a__half(s(s(X))) → s(a__half(mark(X)))
a__half(dbl(X)) → mark(X)
mark(terms(X)) → a__terms(mark(X))
mark(sqr(X)) → a__sqr(mark(X))
mark(add(X1, X2)) → a__add(mark(X1), mark(X2))
mark(dbl(X)) → a__dbl(mark(X))
mark(first(X1, X2)) → a__first(mark(X1), mark(X2))
mark(half(X)) → a__half(mark(X))
mark(cons(X1, X2)) → cons(mark(X1), X2)
mark(recip(X)) → recip(mark(X))
mark(s(X)) → s(mark(X))
mark(0) → 0
mark(nil) → nil
a__terms(X) → terms(X)
a__sqr(X) → sqr(X)
a__add(X1, X2) → add(X1, X2)
a__dbl(X) → dbl(X)
a__first(X1, X2) → first(X1, X2)
a__half(X) → half(X)
MARK(half(X)) → MARK(X)
A__ADD(0, X) → MARK(X)
MARK(s(X)) → MARK(X)
MARK(add(X1, X2)) → MARK(X2)
MARK(cons(X1, X2)) → MARK(X1)
MARK(terms(X)) → MARK(X)
MARK(sqr(X)) → MARK(X)
MARK(add(X1, X2)) → MARK(X1)
A__SQR(s(X)) → A__DBL(mark(X))
A__FIRST(s(X), cons(Y, Z)) → MARK(Y)
MARK(sqr(X)) → A__SQR(mark(X))
A__ADD(s(X), Y) → A__ADD(mark(X), mark(Y))
MARK(terms(X)) → A__TERMS(mark(X))
A__ADD(s(X), Y) → MARK(Y)
A__HALF(s(s(X))) → A__HALF(mark(X))
A__DBL(s(X)) → MARK(X)
MARK(first(X1, X2)) → MARK(X1)
A__SQR(s(X)) → MARK(X)
MARK(dbl(X)) → MARK(X)
MARK(first(X1, X2)) → MARK(X2)
A__ADD(s(X), Y) → MARK(X)
A__HALF(dbl(X)) → MARK(X)
A__SQR(s(X)) → A__SQR(mark(X))
MARK(recip(X)) → MARK(X)
MARK(first(X1, X2)) → A__FIRST(mark(X1), mark(X2))
A__SQR(s(X)) → A__ADD(a__sqr(mark(X)), a__dbl(mark(X)))
A__TERMS(N) → MARK(N)
A__DBL(s(X)) → A__DBL(mark(X))
MARK(add(X1, X2)) → A__ADD(mark(X1), mark(X2))
MARK(dbl(X)) → A__DBL(mark(X))
A__TERMS(N) → A__SQR(mark(N))
MARK(half(X)) → A__HALF(mark(X))
A__HALF(s(s(X))) → MARK(X)
a__terms(N) → cons(recip(a__sqr(mark(N))), terms(s(N)))
a__sqr(0) → 0
a__sqr(s(X)) → s(a__add(a__sqr(mark(X)), a__dbl(mark(X))))
a__dbl(0) → 0
a__dbl(s(X)) → s(s(a__dbl(mark(X))))
a__add(0, X) → mark(X)
a__add(s(X), Y) → s(a__add(mark(X), mark(Y)))
a__first(0, X) → nil
a__first(s(X), cons(Y, Z)) → cons(mark(Y), first(X, Z))
a__half(0) → 0
a__half(s(0)) → 0
a__half(s(s(X))) → s(a__half(mark(X)))
a__half(dbl(X)) → mark(X)
mark(terms(X)) → a__terms(mark(X))
mark(sqr(X)) → a__sqr(mark(X))
mark(add(X1, X2)) → a__add(mark(X1), mark(X2))
mark(dbl(X)) → a__dbl(mark(X))
mark(first(X1, X2)) → a__first(mark(X1), mark(X2))
mark(half(X)) → a__half(mark(X))
mark(cons(X1, X2)) → cons(mark(X1), X2)
mark(recip(X)) → recip(mark(X))
mark(s(X)) → s(mark(X))
mark(0) → 0
mark(nil) → nil
a__terms(X) → terms(X)
a__sqr(X) → sqr(X)
a__add(X1, X2) → add(X1, X2)
a__dbl(X) → dbl(X)
a__first(X1, X2) → first(X1, X2)
a__half(X) → half(X)
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ QDPOrderProof
MARK(half(X)) → MARK(X)
A__ADD(0, X) → MARK(X)
MARK(s(X)) → MARK(X)
MARK(add(X1, X2)) → MARK(X2)
MARK(cons(X1, X2)) → MARK(X1)
MARK(terms(X)) → MARK(X)
MARK(sqr(X)) → MARK(X)
MARK(add(X1, X2)) → MARK(X1)
A__SQR(s(X)) → A__DBL(mark(X))
A__FIRST(s(X), cons(Y, Z)) → MARK(Y)
MARK(sqr(X)) → A__SQR(mark(X))
A__ADD(s(X), Y) → A__ADD(mark(X), mark(Y))
MARK(terms(X)) → A__TERMS(mark(X))
A__ADD(s(X), Y) → MARK(Y)
A__HALF(s(s(X))) → A__HALF(mark(X))
A__DBL(s(X)) → MARK(X)
MARK(first(X1, X2)) → MARK(X1)
A__SQR(s(X)) → MARK(X)
MARK(dbl(X)) → MARK(X)
MARK(first(X1, X2)) → MARK(X2)
A__ADD(s(X), Y) → MARK(X)
A__HALF(dbl(X)) → MARK(X)
A__SQR(s(X)) → A__SQR(mark(X))
MARK(recip(X)) → MARK(X)
MARK(first(X1, X2)) → A__FIRST(mark(X1), mark(X2))
A__SQR(s(X)) → A__ADD(a__sqr(mark(X)), a__dbl(mark(X)))
A__TERMS(N) → MARK(N)
A__DBL(s(X)) → A__DBL(mark(X))
MARK(add(X1, X2)) → A__ADD(mark(X1), mark(X2))
MARK(dbl(X)) → A__DBL(mark(X))
A__TERMS(N) → A__SQR(mark(N))
MARK(half(X)) → A__HALF(mark(X))
A__HALF(s(s(X))) → MARK(X)
a__terms(N) → cons(recip(a__sqr(mark(N))), terms(s(N)))
a__sqr(0) → 0
a__sqr(s(X)) → s(a__add(a__sqr(mark(X)), a__dbl(mark(X))))
a__dbl(0) → 0
a__dbl(s(X)) → s(s(a__dbl(mark(X))))
a__add(0, X) → mark(X)
a__add(s(X), Y) → s(a__add(mark(X), mark(Y)))
a__first(0, X) → nil
a__first(s(X), cons(Y, Z)) → cons(mark(Y), first(X, Z))
a__half(0) → 0
a__half(s(0)) → 0
a__half(s(s(X))) → s(a__half(mark(X)))
a__half(dbl(X)) → mark(X)
mark(terms(X)) → a__terms(mark(X))
mark(sqr(X)) → a__sqr(mark(X))
mark(add(X1, X2)) → a__add(mark(X1), mark(X2))
mark(dbl(X)) → a__dbl(mark(X))
mark(first(X1, X2)) → a__first(mark(X1), mark(X2))
mark(half(X)) → a__half(mark(X))
mark(cons(X1, X2)) → cons(mark(X1), X2)
mark(recip(X)) → recip(mark(X))
mark(s(X)) → s(mark(X))
mark(0) → 0
mark(nil) → nil
a__terms(X) → terms(X)
a__sqr(X) → sqr(X)
a__add(X1, X2) → add(X1, X2)
a__dbl(X) → dbl(X)
a__first(X1, X2) → first(X1, X2)
a__half(X) → half(X)
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
MARK(half(X)) → MARK(X)
A__ADD(0, X) → MARK(X)
MARK(s(X)) → MARK(X)
MARK(add(X1, X2)) → MARK(X2)
MARK(terms(X)) → MARK(X)
MARK(sqr(X)) → MARK(X)
MARK(add(X1, X2)) → MARK(X1)
A__SQR(s(X)) → A__DBL(mark(X))
A__ADD(s(X), Y) → A__ADD(mark(X), mark(Y))
MARK(terms(X)) → A__TERMS(mark(X))
A__ADD(s(X), Y) → MARK(Y)
A__HALF(s(s(X))) → A__HALF(mark(X))
A__DBL(s(X)) → MARK(X)
MARK(first(X1, X2)) → MARK(X1)
A__SQR(s(X)) → MARK(X)
MARK(dbl(X)) → MARK(X)
MARK(first(X1, X2)) → MARK(X2)
A__ADD(s(X), Y) → MARK(X)
A__HALF(dbl(X)) → MARK(X)
A__SQR(s(X)) → A__SQR(mark(X))
MARK(first(X1, X2)) → A__FIRST(mark(X1), mark(X2))
A__SQR(s(X)) → A__ADD(a__sqr(mark(X)), a__dbl(mark(X)))
A__TERMS(N) → MARK(N)
A__DBL(s(X)) → A__DBL(mark(X))
MARK(add(X1, X2)) → A__ADD(mark(X1), mark(X2))
A__HALF(s(s(X))) → MARK(X)
Used ordering: Combined order from the following AFS and order.
MARK(cons(X1, X2)) → MARK(X1)
A__FIRST(s(X), cons(Y, Z)) → MARK(Y)
MARK(sqr(X)) → A__SQR(mark(X))
MARK(recip(X)) → MARK(X)
MARK(dbl(X)) → A__DBL(mark(X))
A__TERMS(N) → A__SQR(mark(N))
MARK(half(X)) → A__HALF(mark(X))
[terms1, aterms1] > [sqr1, ASQR1, ATERMS1, asqr1] > [add2, aadd2] > [AADD2, s1] > [half1, 0, AHALF1, nil, ahalf1]
[terms1, aterms1] > [sqr1, ASQR1, ATERMS1, asqr1] > [add2, aadd2] > [AADD2, s1] > [first2, afirst2]
[terms1, aterms1] > [sqr1, ASQR1, ATERMS1, asqr1] > [ADBL1, dbl1, adbl1] > [AADD2, s1] > [half1, 0, AHALF1, nil, ahalf1]
[terms1, aterms1] > [sqr1, ASQR1, ATERMS1, asqr1] > [ADBL1, dbl1, adbl1] > [AADD2, s1] > [first2, afirst2]
ATERMS1: multiset
sqr1: multiset
adbl1: [1]
aadd2: multiset
ahalf1: multiset
0: multiset
first2: multiset
terms1: [1]
afirst2: multiset
add2: multiset
half1: multiset
AHALF1: multiset
AADD2: [1,2]
ADBL1: [1]
aterms1: [1]
dbl1: [1]
s1: [1]
ASQR1: multiset
nil: multiset
asqr1: multiset
a__terms(N) → cons(recip(a__sqr(mark(N))), terms(s(N)))
a__sqr(0) → 0
a__add(s(X), Y) → s(a__add(mark(X), mark(Y)))
a__first(0, X) → nil
a__first(s(X), cons(Y, Z)) → cons(mark(Y), first(X, Z))
a__half(0) → 0
a__sqr(s(X)) → s(a__add(a__sqr(mark(X)), a__dbl(mark(X))))
a__dbl(0) → 0
a__dbl(s(X)) → s(s(a__dbl(mark(X))))
a__half(dbl(X)) → mark(X)
a__add(0, X) → mark(X)
mark(add(X1, X2)) → a__add(mark(X1), mark(X2))
mark(half(X)) → a__half(mark(X))
mark(sqr(X)) → a__sqr(mark(X))
mark(first(X1, X2)) → a__first(mark(X1), mark(X2))
mark(dbl(X)) → a__dbl(mark(X))
a__half(s(s(X))) → s(a__half(mark(X)))
a__half(s(0)) → 0
mark(terms(X)) → a__terms(mark(X))
mark(nil) → nil
mark(0) → 0
a__sqr(X) → sqr(X)
a__terms(X) → terms(X)
mark(cons(X1, X2)) → cons(mark(X1), X2)
mark(s(X)) → s(mark(X))
mark(recip(X)) → recip(mark(X))
a__first(X1, X2) → first(X1, X2)
a__half(X) → half(X)
a__add(X1, X2) → add(X1, X2)
a__dbl(X) → dbl(X)
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ QDPOrderProof
↳ QDP
↳ DependencyGraphProof
A__FIRST(s(X), cons(Y, Z)) → MARK(Y)
MARK(sqr(X)) → A__SQR(mark(X))
MARK(cons(X1, X2)) → MARK(X1)
MARK(dbl(X)) → A__DBL(mark(X))
MARK(recip(X)) → MARK(X)
A__TERMS(N) → A__SQR(mark(N))
MARK(half(X)) → A__HALF(mark(X))
a__terms(N) → cons(recip(a__sqr(mark(N))), terms(s(N)))
a__sqr(0) → 0
a__sqr(s(X)) → s(a__add(a__sqr(mark(X)), a__dbl(mark(X))))
a__dbl(0) → 0
a__dbl(s(X)) → s(s(a__dbl(mark(X))))
a__add(0, X) → mark(X)
a__add(s(X), Y) → s(a__add(mark(X), mark(Y)))
a__first(0, X) → nil
a__first(s(X), cons(Y, Z)) → cons(mark(Y), first(X, Z))
a__half(0) → 0
a__half(s(0)) → 0
a__half(s(s(X))) → s(a__half(mark(X)))
a__half(dbl(X)) → mark(X)
mark(terms(X)) → a__terms(mark(X))
mark(sqr(X)) → a__sqr(mark(X))
mark(add(X1, X2)) → a__add(mark(X1), mark(X2))
mark(dbl(X)) → a__dbl(mark(X))
mark(first(X1, X2)) → a__first(mark(X1), mark(X2))
mark(half(X)) → a__half(mark(X))
mark(cons(X1, X2)) → cons(mark(X1), X2)
mark(recip(X)) → recip(mark(X))
mark(s(X)) → s(mark(X))
mark(0) → 0
mark(nil) → nil
a__terms(X) → terms(X)
a__sqr(X) → sqr(X)
a__add(X1, X2) → add(X1, X2)
a__dbl(X) → dbl(X)
a__first(X1, X2) → first(X1, X2)
a__half(X) → half(X)
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ QDPOrderProof
↳ QDP
↳ DependencyGraphProof
↳ QDP
↳ UsableRulesProof
MARK(cons(X1, X2)) → MARK(X1)
MARK(recip(X)) → MARK(X)
a__terms(N) → cons(recip(a__sqr(mark(N))), terms(s(N)))
a__sqr(0) → 0
a__sqr(s(X)) → s(a__add(a__sqr(mark(X)), a__dbl(mark(X))))
a__dbl(0) → 0
a__dbl(s(X)) → s(s(a__dbl(mark(X))))
a__add(0, X) → mark(X)
a__add(s(X), Y) → s(a__add(mark(X), mark(Y)))
a__first(0, X) → nil
a__first(s(X), cons(Y, Z)) → cons(mark(Y), first(X, Z))
a__half(0) → 0
a__half(s(0)) → 0
a__half(s(s(X))) → s(a__half(mark(X)))
a__half(dbl(X)) → mark(X)
mark(terms(X)) → a__terms(mark(X))
mark(sqr(X)) → a__sqr(mark(X))
mark(add(X1, X2)) → a__add(mark(X1), mark(X2))
mark(dbl(X)) → a__dbl(mark(X))
mark(first(X1, X2)) → a__first(mark(X1), mark(X2))
mark(half(X)) → a__half(mark(X))
mark(cons(X1, X2)) → cons(mark(X1), X2)
mark(recip(X)) → recip(mark(X))
mark(s(X)) → s(mark(X))
mark(0) → 0
mark(nil) → nil
a__terms(X) → terms(X)
a__sqr(X) → sqr(X)
a__add(X1, X2) → add(X1, X2)
a__dbl(X) → dbl(X)
a__first(X1, X2) → first(X1, X2)
a__half(X) → half(X)
↳ QTRS
↳ DependencyPairsProof
↳ QDP
↳ QDPOrderProof
↳ QDP
↳ DependencyGraphProof
↳ QDP
↳ UsableRulesProof
↳ QDP
↳ QDPSizeChangeProof
MARK(cons(X1, X2)) → MARK(X1)
MARK(recip(X)) → MARK(X)
From the DPs we obtained the following set of size-change graphs: